<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <script src="/lay-excel/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/lay-excel/layui/src/css/layui.css">
    <script src="/lay-excel/layui/src/layui.js"></script>
    <link rel="stylesheet" href="/operation/css/TeaCommodityView.css">
</head>
<body>
<!-- 选中的课程ID -->
<input id="courseId" type="hidden" name="courseId">
<div class="layui-container">
    <div class="layui-row">
            <table border="1">
                <tr>
                    <th class="th" colspan="6">查看商品信息</th>
                </tr>
                <tr>
                    <td class="td1">商品名称：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="productName" readonly= "true" id="courseName">
                    </td>
                    <td class="td1">上传时间：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="createDate" readonly= "true" id="createDate">
                    </td>
                    <td class="td1">上传人：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="userNames" readonly= "true" id="createName">
                        <input type="hidden" name="createUser">
                    </td>
                </tr>
                <tr>
                    <td class="td1">商品售价：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="currentpriceProduct" readonly= "true" id="courseNprice">
                    </td>
                    <td class="td1">商品搜索关键字：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="searchKeywords" readonly= "true" id="coursePrimary">
                    </td>
                    <td class="td1">商品分类：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="categoryName" readonly= "true" id="courseCatory">
                    </td>
                </tr>
                <tr>
                    <td class="td1">商品编号：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="productCode" readonly= "true" id="courseNprice">
                    </td>
                    <td class="td1">优惠券：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="discount" readonly= "true" id="coursePrimary">
                    </td>
                    <td class="td1">商品分类：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="categoryName" readonly= "true" id="courseCatory">
                    </td>
                </tr>
                <tr>
                    <td class="td1">商品状态：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="productSate" readonly= "true" id="courseNprice">
                    </td>
                    <td class="td1">商品是否上线：</td>
                    <td colspan="3">
                        <input type="text" class="layui-input input1" name="state" readonly= "true" id="coursePrimary">
                    </td>
                </tr>
                 <tr>
                     <td class="td1">商品销量：</td>
                     <td>
                         <input type="text" class="layui-input input1" name="productSales" readonly= "true" id="likeNum">
                     </td>
                     <td class="td1">商品标签：</td>
                     <td>
                         <input type="text" class="layui-input input1"  name="productLabel" readonly= "true" id="collectNum">
                     </td>
                     <td class="td1">服务保证：</td>
                     <td>
                         <input type="text" class="layui-input input1"  name="ensure" readonly= "true" id="commentNum">
                     </td>
                 </tr>
                <tr>
                    <td class="td1">商品点赞量：</td>
                    <td>
                        <input type="text" class="layui-input input1" name="fabulous" readonly= "true" id="likeNum">
                    </td>
                    <td class="td1">文章收藏量：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="collectionVolume" readonly= "true" id="collectNum">
                    </td>
                    <td class="td1">文章点击量：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="hits" readonly= "true" id="commentNum">
                    </td>
                </tr>

                <tr>
                    <td colspan="6" class="td2">
                        <span><i class="layui-icon layui-icon-picture"></i>商品附属图</span>
                    </td>
                </tr>
                <tr>
                    <td class="td3">预览图：</td>
                    <td colspan="5" class="td4">
                        <img src="" id="img">
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span><i class="layui-icon layui-icon-chart-screen"></i>商品描述</span>
                    </td>
                </tr>
                <tr>
                    <td class="td3">内容：</td>
                    <td colspan="5" class="td5">
                        <p class="td5_p">
                            <!-- product_description -->

                        </p>
                    </td>
                </tr>
            </table>
            <div id="divId2">
                <h2 class="Title"></h2>
                <p class="titp"><i class="layui-icon">&#xe642;</i>回复评论及需修改内容</p>
                <div id="divId3">
                    <!-- 当前登录用户的ID -->
                    <input id="UserId" type="hidden" name="UserId">
                    <p class="divp">
                        <span class="sp">用户名：</span>
                        <input type="text" class="layui-input" readonly="true" id="sendUserName">
                    </p>
                    <p class="divp">
                        <span class="sp">账号：</span>
                        <input type="text" class="layui-input" readonly="true" id="sendUserAccount">
                    </p>
                    <p class="divp">
                        <span class="sp"><span class="sp1">*</span>评论内容：</span>
                        <textarea id="textsId" class="layui-textarea" name="content" placeholder="请发表您的评论"></textarea>
                    </p>
                    <button id="subBtn" class="layui-btn" onclick="addCommentInfo()">确定</button>
                </div>
                <p class="titp"><i class="layui-icon layui-icon-at"></i>全部评论<span id="commentNum"></span></p>
                <div>
                    <ul id="commentUl"></ul>
                    <div id="nocomDiv">没有更多评论了</div>
                </div>
            </div>
    </div>
</div>
<script src="/operation/js/TeaCommodityView.js"></script>
</body>
</html>